Skip to content

fix(devices): restore Simlock 0.8.0 compatibility - #41064

Open
floklein wants to merge 1 commit into
pingdotgg:mainfrom
floklein:fix/simlock-agent-device
Open

floklein wants to merge 1 commit into
pingdotgg:mainfrom
floklein:fix/simlock-agent-device

Conversation

@floklein

@floklein floklein commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

T3 Code stopped opening Simlock 0.8.0 pool devices after #40095 bumped agent-device to 0.21.41. The new client requires RPC protocol 3, and Simlock 0.8.0 serves protocol 2.

- T3 managed runtime and mobile pool scripts: agent-device 0.21.41
+ T3 managed runtime and mobile pool scripts: agent-device 0.21.36

Restore the matching launcher flags, CLI help fixture, and showcase pin. The local mobile:audit command uses its own 0.21.41 dependency for native audit support. expo-device-hub stays at 0.26.1.

Fixes #41057.

Evidence

  • Before 0.21.41 refused a local mock of a protocol-2 Simlock gateway with Remote daemon RPC protocol is incompatible before issuing a device RPC.
  • After The pinned 0.21.36 accepted the same gateway and completed a device-list RPC. fix(web): floating device preview keeps its stream across thread switches #40240 independently documented successful live leasing with that pin.
  • vp run check:changed upstream/main passed. The focused Simlock and device toolchain tests passed (16 tests), and the device eval dry run completed. The broader Windows run had the same 15 failures on this branch and on upstream/main at dbb5bdb582. This branch's protocol check used a mock gateway.

Merge Danger

Door Two-way. Blast radius Device tooling. Managed device sessions use the earlier CLI, which restores protocol-2 compatibility and drops CLI additions introduced after 0.21.36.

GPT-6.2 Sol via Codex in T3 Code.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 22, 2026
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Run configuration

Commits

Reviewing files that changed from the base of the PR and between be34e5b and 1f3905b.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The change pins the managed agent-device runtime to 0.21.36 and updates its shim flags and help snapshot. The mobile audit script uses a separate agent-device@0.21.41 alias.

Changes: agent-device versioning

Layer / File(s) Summary
Managed runtime version and flags
.github/workflows/mobile-showcase-screenshots.yml, apps/server/src/device/deviceToolVersions.json, apps/server/src/device/AgentDeviceShim.ts
The workflow and server configuration use agent-device 0.21.36. The shim removes six value-taking flags from its list.
CLI help reference
evals/mcp-tool-use/agent-device-help.txt
The help snapshot documents version 0.21.36 and updates its command catalog, guides, and help text for several commands.
Mobile audit CLI alias
scripts/package.json, scripts/mobile-audit.ts, knip.jsonc
The scripts workspace adds an agent-device@0.21.41 alias. The mobile audit script uses that package by default, and Knip ignores the alias dependency.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

  • pingdotgg/t3code#40095: This PR introduced the agent-device 0.21.41 pin and matching shim flag changes that this change reverses.
  • pingdotgg/t3code#41063: This PR makes overlapping agent-device 0.21.36 pin and shim changes for the same reported issue.

Suggested reviewers: juliusmarminge, macroscopeapp

Merge Risk: Minimal · previous review be34e

This change restores the agent-device version that works with Simlock 0.8.0 pools and keeps the local mobile audit command on its separate newer version. No concrete merge-blocking risk was found. The change drops CLI additions introduced after 0.21.36 for managed device sessions, which is the stated trade-off.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: restoring Simlock 0.8.0 compatibility in the devices area. The changeset pins agent-device to 0.21.36 (from 0.21.41) across the managed runtime, launcher flags, help f…
Description check Passed The description follows the template sections: Problem, Change, Scope, and Verification. It explains the regression after the 0.21.41 bump, the pin to 0.21.36, and the link to issue #41057. It gives b…
Linked Issues check Passed [#41057] The issue requires T3 Code to lease and open devices from existing Simlock 0.8.0 pools. The issue states the cause: the agent-device 0.21.41 bump changed RPC to protocol 3, and Simlock 0.8.0 …
Out of Scope Changes check Passed All listed changes connect to the 0.21.41 to 0.21.36 downgrade. The workflow pin, deviceToolVersions.json, and scripts/package.json change the runtime version. AgentDeviceShim.ts VALUE_FLAGS and the h…
Full details: Title check

Explanation

The title names the main change: restoring Simlock 0.8.0 compatibility in the devices area. The changeset pins agent-device to 0.21.36 (from 0.21.41) across the managed runtime, launcher flags, help fixture, and showcase workflow, which restores protocol-2 compatibility. The title is specific and follows the conventional commit form. It does not name the version pin, but it does not need to.

Full details: Description check

Explanation

The description follows the template sections: Problem, Change, Scope, and Verification. It explains the regression after the 0.21.41 bump, the pin to 0.21.36, and the link to issue #41057. It gives before and after protocol evidence and lists the checks run. Its Scope section links the issue and states the bug, which satisfies the template. The Verification section is specific, and it notes that the protocol check used a mock gateway. The author uses a 'Summary' heading and a 'Merge Danger' section instead of the template's exact headings. The template's 'Problem' and 'Change' headings are not present as named sections. The author also gives no before/after screenshots, but this is a non-UI change, so none are needed. The description is mostly complete and clear.

Full details: Linked Issues check

Explanation

[#41057] The issue requires T3 Code to lease and open devices from existing Simlock 0.8.0 pools. The issue states the cause: the agent-device 0.21.41 bump changed RPC to protocol 3, and Simlock 0.8.0 rejects it. The PR pins agent-device to 0.21.36 in apps/server/src/device/deviceToolVersions.json, scripts/package.json, and the showcase workflow (.github/workflows/mobile-showcase-screenshots.yml). It also sets AgentDeviceShim.ts VALUE_FLAGS to match 0.21.36. The PR reports that a mock protocol-2 gateway was refused under 0.21.41 and accepted under 0.21.36 with a completed device-list RPC. It cites #40240 for successful live leasing with the same pin. The issue's own workaround is the same 0.21.36 pin. Limits: the verification relies on a mock gateway and on #40240, not on a live run in this PR. No new automated regression test is evident in the summary. pnpm-lock.yaml is in ignored_files and was not inspected. The manifest pins are the coding change that the issue requires, so the verdict does not depend on the lockfile.

Full details: Out of Scope Changes check

Explanation

All listed changes connect to the 0.21.41 to 0.21.36 downgrade. The workflow pin, deviceToolVersions.json, and scripts/package.json change the runtime version. AgentDeviceShim.ts VALUE_FLAGS and the help fixture agent-device-help.txt (0.21.36, 75 commands) match the pinned CLI. The mobile-audit.ts default path, the scripts/package.json agent-device-audit alias for 0.21.41, and the knip.jsonc ignore entry keep the local mobile:audit command working. The PR states this intent, and it keeps the audit-only dependency separate from the managed runtime. expo-device-hub stays at 0.26.1 as stated. The removed CLI flags and commands are a known side effect of the downgrade, and the PR documents them. No unrelated change was found in the summary. The lockfile was excluded and not reviewed; it is not treated as evidence of scope.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7e3a9ba and be34e5b.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 7

  • .github/workflows/mobile-showcase-screenshots.yml
  • apps/server/src/device/AgentDeviceShim.ts
  • apps/server/src/device/deviceToolVersions.json
  • evals/mcp-tool-use/agent-device-help.txt
  • knip.jsonc
  • scripts/mobile-audit.ts
  • scripts/package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@juliusmarminge

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the capture step could not show the problem on the base commit, so there is nothing to prove fixed.

Configured device support and the supplied Simlock pool through settings RPC, opened the seeded thread, opened the Device panel, and selected Start Pixel 9. Base reached the device viewport but its capture still showed Connecting video. Head displayed Remote daemon RPC protocol is incompatible. A subsequent comparison requiring the video overlay to clear was interrupted by a runtime stall and produced no completed proof.

It stays open for a person to finish or close.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 22, 2026
@floklein

Copy link
Copy Markdown
Contributor Author

I reran the protocol check after rebasing. Against the same mock protocol-2 gateway, 0.21.41 returns Remote daemon RPC protocol is incompatible before sending a device RPC, and the PR’s pinned 0.21.36 completes the device-list RPC. #40240 also records successful Pixel 9 leasing with 0.21.36. The live capture is still inconclusive. The build’s installed agent-device version and the gateway’s RPC version would help explain why the capture saw a protocol mismatch on the PR build.

@floklein
floklein force-pushed the fix/simlock-agent-device branch from be34e5b to 1f3905b Compare November 22, 2026 23:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Simlock 0.8.0 pool devices fail to open after the agent-device 0.21.41 bump

2 participants